package com.mark.service;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.common.util.TablePage;
import com.exam.entity.Exam;
import com.mark.entity.StuAnswer;
import com.mark.entity.StuOptions;

public interface IStuAnswerService {
	public TablePage<StuAnswer> findPage(Specification<StuAnswer> spec,Pageable pageable);
	public StuAnswer findOne(Long id);
	public StuAnswer findByStuAndExam(Long stuId,Long eId);
	public void selectAnswer(StuOptions stuOptions);
	public void commitAnswer(Long stuAnswerId);
	public boolean isTimeLess(Long stuAnswerId);
	public Integer findTaskNum(Long teacher_id);
	public List<Exam> findTask(Long teacher_id);
	public List<StuAnswer> findUnMarkList(Long exam_id);
	public String startMarked(Long exam_id);
	public boolean isAllStuMarked(Long exam_id);
	public void markStuAnswer(Long stuOptionsId,float score);
	public void generateScore(Long stuAnswerId);
	public String markOne(StuAnswer stuAnswer);
	public String getTask(Long exam_id);
}
